package com.jtjrenren.android.taxi.passenger.core.order.status;

import com.baidu.mapapi.model.LatLng;
import com.jtjrenren.android.taxi.passenger.manger.api.ApiWorks;

/**
 * Created by wdl on 2016/9/18.
 */

public class OrderStatusInteractorImpl implements OrderStatusInteractor {
    @Override
    public void getOrderDetails(String orderID, ApiWorks.ResponseListener listener) {
        ApiWorks.getOrderDetailByOrderSerNo(orderID,listener);
    }

    @Override
    public void getDriverPos(String driverID, LatLng loclat, ApiWorks.ResponseListener listener) {
        ApiWorks.getDriverPostion(driverID, "", "", loclat.latitude + "", loclat.longitude + "", listener);
    }

    @Override
    public void getRuningCost(String orderID, ApiWorks.ResponseListener listener) {
        ApiWorks.getOrderCurrCost(orderID,listener);
    }
}
